package com.ming.sportdemo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ming.sportdemo.bean.Field;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public interface FieldService extends IService<Field> {
    public Field getFieldByMessage(@Param("fieldName") String fieldName, @Param("fieldLocation") String fieldLocation);
    public List<Field> getAllField(@Param("fieldName")String fieldName, @Param("fieldLocation")String fieldLocation,@Param("pageStart") int pageStart, @Param("pageSize")int pageSize);
    public int getFieldCounts(@Param("fieldName")String fieldName);
    public int addField(Field field);
    public int deleteField(@Param("fieldId") int fieldId);
    public Field getUpdateField(int fieldId);
    public int updateField(Field field);
    Field getByName(@Param("fieldName")String fieldName);

}

